<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout" layout:decorate="fragment">
<head th:replace="layout/header :: head(~{::title},~{::link})">
    <meta charset="UTF-8">
    <title>List</title>
    <link rel="stylesheet" th:href="@{list.css}">
</head>
<body>

<div layout:fragment="content">
    <table border="1">
        <tr>
            <th>编号</th>
            <th>类型</th>
            <th>品种</th>
            <th>产地</th>
            <th>简介</th>
            <th>操作</th>
        </tr>
        <tr th:each="fruit : ${list}">
            <td th:text="${fruit.fruitId}"></td>
            <td th:text="${fruit.type}"></td>
            <td th:text="${fruit.breed}"></td>
            <td th:text="${fruit.area}"></td>
            <td th:text="${fruit.brief}"></td>
            <td>
                <a th:href="|fruit/${fruit.fruitId}|">查看</a>
                <a th:href="|update/${fruit.fruitId}|">修改</a>
                <a th:href="|delete/${fruit.fruitId}|">删除</a>
            </td>
        </tr>
    </table>
    <a th:href="|toAdd|">新增</a>
</div>

</body>
</html>
